// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import store from './store/store.js'
import { dateFormat } from './utils/filter.js'
import echarts from 'echarts'
import common from './api/index'
import 'font-awesome/css/font-awesome.min.css'

import html2PDF from '@/utils/html2PDF.js'
// import VueAMap from 'vue-amap'
Vue.use(html2PDF)
Vue.config.productionTip = false

Vue.use(ElementUI)
// Vue.use(VueAMap)
Vue.prototype.$echarts = echarts;
Vue.prototype.$dateFormat = dateFormat
Vue.prototype.$common = common;
// VueAMap.initAMapApiLoader({
//   key: '93cbce7d8fbb0991f6a8a3f7793d7097',
//   plugin: ['AMap.Geocoder', 'AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
//   uiVersion: '1.0',
//   // 默认高德 sdk 版本为 1.4.4
//   v: '1.4.4'
// });


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
